<?php
    
    $this->pageTitle=Yii::app()->name . ' - Add Instrument To Experiment';
    $this->breadcrumbs=array(
    $model->experimento->id=>array('view','id'=>$model->experimento->id),'Add Instrument');
    
    $this->menu=
            array(array('label'=>'Back To Experiment', 'url'=>array('view','id'=>$model->experimento->id)),);
?>

<h1>Add Instrument To Experiment <?php echo $model->experimento->id; ?></h1>

</br>

<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="successMessage">
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>

</br>


<div class="form">
    <?php $form=$this->beginWidget('CActiveForm'); ?>
    <p class="note">Fields with <span class="required">*</span> are required.</p>
    
    <div class="row">
		<?php echo $form->labelEx($model,'Instrument Name'); ?>
		<?php echo $form->dropDownList($model, 'equipo', Experimento::getEquipoToExperimento()); ?>
		<?php echo $form->error($model,'equipo'); ?>
    </div>
    
    </br>
    
    <div class="row buttons">
        <?php echo CHtml::submitButton('Add Instrument'); ?>
    </div>
    
    <?php $this->endWidget(); ?>
    
</div>